package cn.neusoft.service;

import cn.neusoft.domain.Warehouse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WarehouseService {

    void add(Warehouse warehouse);

    void delete(Long warehouseId);

    void update(Warehouse warehouse);

    List<Warehouse> getAll();

    Warehouse getById(Long warehouseId);

    List<Warehouse> getByWarehouseName(@Param("warehouseName") String warehouseName);

    List<Warehouse> getWarehousesByPage(int page, int pageSize);

    int getTotalCount();

    List<Warehouse> getWarehouseByLevel(Integer level);

}